<?php /* Smarty version 2.6.26, created on 2013-02-14 17:48:00
         compiled from mcost_dm_form.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'mcost_dm_form.html', 134, false),array('modifier', 'escape', 'mcost_dm_form.html', 152, false),)), $this); ?>
<?php echo '<?xml'; ?>
 version="1.0" encoding="utf-8"<?php echo '?>'; ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Script-Type" content="text/javascript" />
		<meta http-equiv="Content-Style-Type" content="text/css" />
		<title>コントロールパネル</title>
		<link rel="stylesheet" href="./assets/styles/default.css" type="text/css" />
		<link rel="stylesheet" href="./assets/styles/ui-lightness/ui.all.css" type="text/css" />
		
		<link rel="stylesheet" href="./assets/styles/ui-lightness/jquery-ui-1.7.3.custom.css" type="text/css" />
		<link rel="stylesheet" href="./assets/styles/dialog.css" type="text/css" />
		
		<script src="assets/scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
		<script src="assets/scripts/jquery-ui-1.7.3.custom.min.js" type="text/javascript"></script>
		<script src="assets/scripts/ui/ui.dialog.js" type="text/javascript"></script>
		
		
		<script src="assets/scripts/menu.js" type="text/javascript"></script>
		<script src="assets/scripts/table.js" type="text/javascript"></script>
		<script type="text/javascript" src="./tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
		
		<script type="text/javascript" src="./assets/scripts/editor.js"></script>
		<script type="text/javascript" src="./assets/scripts/ui/ui.datepicker.js"></script>
		<script type="text/javascript" src="./assets/scripts/ui/ui.core.js"></script>
		<script type="text/javascript" src="./assets/scripts/search.js"></script>
		<script type="text/javascript">
		$(function() {
			$('.message').fadeIn("slow");
			$('.btn_regist').click(function(){
				if( confirm('登録してよろしいですか？') ){
					document.fm.mode.value = 'input';
					document.fm.submit();
				}
			});
			$('button.tddel').live('click',function(){
				$(this).closest('tr').remove();
				
			});
		
			$('.btn_update').click(function(){
				if( confirm('更新してよろしいですか？') ){
					document.fm.mode.value = 'input';
					document.fm.submit();
				}
			});
			$('.btn_return').click(function(){
				location.href = "mcost_dm_index.php?hist=2";
			});
			
			$('.text_date').datepicker({
				changeMonth: true,
				changeYear: true,
				dateFormat: 'yy/mm/dd'
			});
		});
		
		function setS(  valnm ) {
			//eval("document.fm." +  gPara + "_cd.value = " + valcd);
			eval("document.fm." +  gPara + "_name.value ='" + valnm + "'");			
			$('#dialog').dialog("close");
		}
		
		function li_add(objID,inID, inVal) {
			if (checkNames(inID)) {
				var strHtml = "<li id='a" + inID +"' class='item_li'> <a href='#'  style='color:red' class='li_del' >X</a>&nbsp;&nbsp;"+ inID + "&nbsp;&nbsp;" + inVal;
				if (typeof(g_shop_ul_to_grid)!="undefined") {
					strHtml = strHtml + "<input type='hidden' value='" + inID  + "' name ='"  + gMutiObj + "_cd_ul[]'>";
					strHtml = strHtml + "<input type='hidden' value='" + inVal + "' name ='" + gMutiObj + "_name_ul[]'>";
				} else {
					strHtml = strHtml + "<input type='hidden' value='" + inID  + "' name ='"  + gMutiObj + "_cd[]'>";
					strHtml = strHtml + "<input type='hidden' value='" + inVal + "' name ='" + gMutiObj + "_name[]'>";
				}
				strHtml = strHtml + "</li>";
				$("#" + objID +"_ul").append(strHtml);
			}
		}
		var g_shop_ul_to_grid = true ;
		function add_tr(vid, vname) {
			var table = $('#table_shop');
			var str = '<tr><td> ' + vid + '</td><td>' + vname + ' </td><td> <input type="text" id="p_'+ vid +'" name=count[]" class="text nper" value = ""/> ';
			str = str + "<input type='hidden' value='" + vid  + "' name ='"  + gMutiObj + "_cd[]'>";
			str = str + "<input type='hidden' value='" + vname + "' name ='" + gMutiObj + "_name[]'>";
			//str = str + '<td> <input type="text"  id="n_'+ vid +'"  name='   + gMutiObj + '_nums[]" class="text nnum"  readonly="readonly" value = ""/></td> '
			str = str + '<td align="center"><button type="button" class="tddel">削除</button> </td></tr>';
			
			$(table).append(str);
		}
		
		function copy_shop_pop_ul_to_grid() {
			var cdsul   = document.getElementsByName(gMutiObj + '_cd_ul[]');
			var namesul = document.getElementsByName(gMutiObj + '_name_ul[]');
			var cdarr   = new Array();
			$.each(cdsul, function(i,val){
				cdarr[i] = val.value;
			}); 
			//var html = $("#table_shop tr:last").html();
           // html = "<tr>" + html + "</tr>";
          //  $("#table_shop tr:last").remove();
			$.each(namesul, function(i,val){
				add_tr(cdarr[i], val.value)
			}); 
			//$("#table_shop").append(html);
		}
		</script>
		
	</head>
	<body id="">
<?php echo $this->_tpl_vars['menu']; ?>

<?php echo $this->_tpl_vars['logout']; ?>

		<div id="container"><div class="wrapper">
			<h2>DM経費マスター管理</h2>
			<ul class="submenu clearfix">
				<li>一覧.更新</li>
				<li><a href="mcost_dm_d_import.php">明細表登録</a></li>
				<li><a href="mcost_dm_c_import.php">件数表登録</a></li>
				<li><a href="mcost_dm_price.php">DM単価マスタ</a></li>
				<li><a href="mcost_dm_plane_index.php">経費一覧.更新</a></li>
				<li><a href="mcost_dm_plane_import.php">経費一括登録</a></li>
			</ul>
			<h3>DM経費一覧.更新　</h3>
<?php if ($this->_tpl_vars['phase'] == 'input'): ?>
			<p class="message">内容を確認し、<?php if ($this->_tpl_vars['forms']['id'] == ''): ?>登録<?php else: ?>更新<?php endif; ?>ボタンをクリックしてください。</p>
			<form name="fm" action="mcost_dm_form.php" method="post">
				<table class="formTable">
					<tbody>
<?php if ($this->_tpl_vars['forms']['id'] != ''): ?>
						<tr>
							<th>更新日</th>
							<td>
								<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['u_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y/%m/%d %H:%M") : smarty_modifier_date_format($_tmp, "%Y/%m/%d %H:%M")); ?>
<input type="hidden" name="u_time" value="<?php echo $this->_tpl_vars['forms']['u_time']; ?>
" />
							</td>
						</tr>
						<tr>
							<th>更新者</th>
							<td>
								<?php echo $this->_tpl_vars['forms']['m_user_name']; ?>
<input type="hidden" name="m_user_name" value="<?php echo $this->_tpl_vars['forms']['m_user_name']; ?>
" />
							</td>
						</tr>
						<tr>
							<th>ID</th>
							<td>
								<?php echo $this->_tpl_vars['forms']['id']; ?>

							</td>
						</tr>
						<tr>
							<th>差替ＮＯ</th>
							<td>
	<input type="text" name="dm_no"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['dm_no'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"   class="dtext" readonly  /><?php echo $this->_tpl_vars['err']['dm_no']; ?>

	<input type="hidden" name="matrix_cd" value="<?php echo $this->_tpl_vars['forms']['matrix_cd']; ?>
" />

							</td>
						</tr>
<?php endif; ?>
						<tr>
							<th>※セール期間</th>
							<td>
	<input type="text" name="begin_date"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['begin_date'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text_date" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['begin_date']; ?>

	 ～ 
	<input type="text" name="end_date"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['end_date'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text_date" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['end_date']; ?>

							</td>
						</tr><tr>
							<th>※投函日</th>
							<td>
	<input type="text" name="dm_date"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['dm_date'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text_date" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['dm_date']; ?>

							</td>
						</tr><tr>
							<th>※DMコード</th>
							<td>
	<input type="text" name="dm_cd"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['dm_cd'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['dm_cd']; ?>

							</td>
						</tr><tr>
							<th>※タイトル</th>
							<td>
	<input type="text" name="title"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['title']; ?>


							</td>
						</tr><tr>

							<th>※種類</th>
							<td>
	<input type="text" name="sort"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['sort'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['sort']; ?>


							</td>
						</tr><tr>

							<th>ハガキ表</th>
							<td>
	<input type="text" name="haga_out"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['haga_out'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['haga_out']; ?>


							</td>
						</tr><tr>
							<th>ハガキ裏</th>
							<td>
	<input type="text" name="haga_in"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['haga_in'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['haga_in']; ?>


							</td>
						</tr><tr>
							<th>封筒</th>
							<td>
	<input type="text" name="futou"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['futou'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['futou']; ?>


							</td>
						</tr><tr>
							<th>プレ券表</th>
							<td>
	<input type="text" name="preken_out"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['preken_out'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['preken_out']; ?>


							</td>
						</tr><tr>
							<th>プレ券裏</th>
							<td>
	<input type="text" name="preken_in"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['preken_in'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['preken_in']; ?>


							</td>
						</tr><tr>
							<th>割引券表</th>
							<td>
	<input type="text" name="wariken_out"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['wariken_out'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['wariken_out']; ?>


							</td>
						</tr><tr>
							<th>割引券裏</th>
							<td>
	<input type="text" name="wariken_in"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['wariken_in'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['wariken_in']; ?>


							</td>
						</tr><tr>
							<th>宛名表</th>
							<td>
	<input type="text" name="atemei_out"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['atemei_out'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['atemei_out']; ?>


							</td>
						</tr><tr>
							<th>宛名裏</th>
							<td>
	<input type="text" name="atemei_in"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['atemei_in'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['atemei_in']; ?>


							</td>
						</tr><tr>
							<th>ペラ１表</th>
							<td>
	<input type="text" name="pera1_out"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['pera1_out'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['pera1_out']; ?>


							</td>
						</tr><tr>
							<th>ペラ１裏</th>
							<td>
	<input type="text" name="pera1_in"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['pera1_in'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['pera1_in']; ?>


							</td>
						</tr><tr>
							<th>ペラ2表</th>
							<td>
	<input type="text" name="pera2_out"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['pera2_out'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['pera2_out']; ?>


							</td>
						</tr><tr>
							<th>ペラ2裏</th>
							<td>
	<input type="text" name="pera2_in"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['pera2_in'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['pera2_in']; ?>


							</td>
						</tr><tr>
							<th>挨拶状表</th>
							<td>
	<input type="text" name="ayisatu_out"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['ayisatu_out'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['ayisatu_out']; ?>


							</td>
						</tr><tr>
							<th>挨拶状裏</th>
							<td>
	<input type="text" name="ayisatu_in"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['ayisatu_in'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['ayisatu_in']; ?>


							</td>
						</tr><tr>
							<th>本状表</th>
							<td>
	<input type="text" name="honjyou_out"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['honjyou_out'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['honjyou_out']; ?>


							</td>
						</tr><tr>
							<th>本状裏</th>
							<td>
	<input type="text" name="honjyou_in"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['honjyou_in'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['honjyou_in']; ?>


							</td>
						</tr><tr>
							<th>その他１</th>
							<td>
	<input type="text" name="other1"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['other1'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['other1']; ?>


							</td>
						</tr><tr>
	<th>その他2</th>
							<td>
	<input type="text" name="other2"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['other2'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['other2']; ?>


							</td>
						</tr><tr>
	<th>その他3</th>
							<td>
	<input type="text" name="other3" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['other3'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['other3']; ?>


							</td>
						</tr><tr>
							<th>その他4</th>
							<td>
	<input type="text" name="other4"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['other4'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['other4']; ?>


							</td>
						</tr><tr>
							<th>その他5</th>
							<td>
	<input type="text" name="other5"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['other5'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  <?php if ($this->_tpl_vars['eflg'] == '1'): ?> class="text" <?php else: ?> class="dtext" readonly <?php endif; ?> /><?php echo $this->_tpl_vars['err']['other5']; ?>


							</td>
						</tr>
						

						<?php if ($this->_tpl_vars['forms']['id'] != ''): ?>
						<tr>
							<th>店舗</th>
							<td>
				<button type="button" id="shop" class="btn_search_muti" ><span>店舗追加</span></button> <?php echo $this->_tpl_vars['err']['mutirow']; ?>

				<table  style="width:85%" id="table_shop">
					<thead>
					</thead>
					<tbody><tr>
							<th>店舗コード</th>	<th>店舗名</th>	<th>件数</th>	<th>操作</th>
						</tr>
<?php $_from = $this->_tpl_vars['forms']['mutirow']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['member'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['member']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
        $this->_foreach['member']['iteration']++;
?>
						<tr>
							<td> <?php echo $this->_tpl_vars['v']['shop_cd']; ?>
 </td>
							<td> <?php echo $this->_tpl_vars['v']['shop_name']; ?>
 </td>
							<td> 
								<input class="text nper" type="text" value="<?php echo $this->_tpl_vars['v']['count']; ?>
"  id="p_<?php echo $this->_tpl_vars['v']['shop_cd']; ?>
" name="count[]"><?php echo $this->_tpl_vars['v']['errcount']; ?>

								<input type="hidden" name="shop_cd[]" value="<?php echo $this->_tpl_vars['v']['shop_cd']; ?>
">
								<input type="hidden" name="shop_name[]" value="<?php echo $this->_tpl_vars['v']['shop_name']; ?>
">
							</td>
							<td align="center">	<button type="button" class="tddel">削除</button></td>
						</tr>
<?php endforeach; endif; unset($_from); ?>
					</tbody>
				</table>
							</td>
						</tr>
 <?php endif; ?>

					</tbody>
				</table>
				<p class="button">
<?php if ($this->_tpl_vars['forms']['id'] != ''): ?>
					<button type="button" class="btn_return" class="submit"><span>戻る</span></button>
					<button type="button" class="btn_update" class="submit"><span>更新</span></button>
<?php else: ?>
					<button type="button" class="btn_regist" class="submit"><span>登録</span></button>
<?php endif; ?>
				</p>
				<input type="hidden" name="id" value="<?php echo $this->_tpl_vars['forms']['id']; ?>
" />
				<input type="hidden" name="mode" value="" />
			</form>

<div id="dialog" >
</div>
<div id="dialogmuti" >
</div>
<?php endif; ?>

<?php if ($this->_tpl_vars['phase'] == 'complete'): ?>
			<p class="message"><?php echo $this->_tpl_vars['message']; ?>
</p>
			<ul>
				<li>>> <a href="mcost_dm_index.php?hist=2">一覧ページに戻る</a></li>
				<li>>> <a href="mcost_dm_form.php?id=<?php echo $this->_tpl_vars['forms']['id']; ?>
">更新</a></li>
			</ul>
<?php endif; ?>

		</div></div>
		<?php echo $this->_tpl_vars['footer']; ?>

	</body>
</html>